﻿using System;
using System.Windows.Forms;
using log4net;
using log4net.Config;

namespace BarberShop
{
    internal static class Program
    {
        private static readonly ILog Log = LogManager.GetLogger(typeof (Program));

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            XmlConfigurator.Configure();
            Log.Info("Starting application...");
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
            catch (Exception e)
            {
                Log.Error("Exeption happened.", e);
            }
        }
    }
}